package com.cskaoyan.vo.mallvo;

import lombok.Data;

import java.util.List;

/**
 * @author hsp
 * @date 2021/5/8 23:00
 */
public class RegionVo {

    /**
     * id : 1
     * name : 北京市
     * type : 1
     * code : 11
     * children : [{"id":32,"name":"市辖区","type":2,"code":1101,"children":[{"id":376,"name":"东城区","type":3,"code":110101},{"id":377,"name":"西城区","type":3,"code":110102},{"id":378,"name":"朝阳区","type":3,"code":110105},{"id":379,"name":"丰台区","type":3,"code":110106},{"id":380,"name":"石景山区","type":3,"code":110107},{"id":381,"name":"海淀区","type":3,"code":110108},{"id":382,"name":"门头沟区","type":3,"code":110109},{"id":383,"name":"房山区","type":3,"code":110111},{"id":384,"name":"通州区","type":3,"code":110112},{"id":385,"name":"顺义区","type":3,"code":110113},{"id":386,"name":"昌平区","type":3,"code":110114},{"id":387,"name":"大兴区","type":3,"code":110115},{"id":388,"name":"怀柔区","type":3,"code":110116},{"id":389,"name":"平谷区","type":3,"code":110117},{"id":390,"name":"密云区","type":3,"code":110118},{"id":391,"name":"延庆区","type":3,"code":110119}]}]
     */

    private int id;
    private String name;
    private int type;
    private String code;
    private List<ChildrenBeanX> children;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public List<ChildrenBeanX> getChildren() {
        return children;
    }

    public void setChildren(List<ChildrenBeanX> children) {
        this.children = children;
    }
    @Data
    public static class ChildrenBeanX {
        /**
         * id : 32
         * name : 市辖区
         * type : 2
         * code : 1101
         * children : [{"id":376,"name":"东城区","type":3,"code":110101},{"id":377,"name":"西城区","type":3,"code":110102},{"id":378,"name":"朝阳区","type":3,"code":110105},{"id":379,"name":"丰台区","type":3,"code":110106},{"id":380,"name":"石景山区","type":3,"code":110107},{"id":381,"name":"海淀区","type":3,"code":110108},{"id":382,"name":"门头沟区","type":3,"code":110109},{"id":383,"name":"房山区","type":3,"code":110111},{"id":384,"name":"通州区","type":3,"code":110112},{"id":385,"name":"顺义区","type":3,"code":110113},{"id":386,"name":"昌平区","type":3,"code":110114},{"id":387,"name":"大兴区","type":3,"code":110115},{"id":388,"name":"怀柔区","type":3,"code":110116},{"id":389,"name":"平谷区","type":3,"code":110117},{"id":390,"name":"密云区","type":3,"code":110118},{"id":391,"name":"延庆区","type":3,"code":110119}]
         */

        private int id;
        private String name;
        private int type;
        private int code;
        private List<ChildrenBean> children;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public List<ChildrenBean> getChildren() {
            return children;
        }

        public void setChildren(List<ChildrenBean> children) {
            this.children = children;
        }

        public static class ChildrenBean {
            /**
             * id : 376
             * name : 东城区
             * type : 3
             * code : 110101
             */

            private int id;
            private String name;
            private int type;
            private int code;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public int getCode() {
                return code;
            }

            public void setCode(int code) {
                this.code = code;
            }
        }
    }
}
